/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

import java.util.Iterator;
import java.util.List;
import java.util.Vector;

/**
 * <p>Project: jse2303 - Vector1
 * <p>Powered by webrx On 2023-07-19 14:34:28
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Vector1 {
    public static void main(String[] args) {
        List<Integer> vector = new Vector<>();
        System.out.println(vector.size());
        vector.add(1);
        vector.addAll(0, List.of(11, 22, 33, 44));
        for (int i : vector) {
            System.out.println(i);
        }

        Iterator<Integer> it = vector.iterator();
        while (it.hasNext()) {
            System.out.println(it.next());
        }
    }
}
